<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdministratorsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('administrators', function (Blueprint $table) {
			$table->bigIncrements('id')->unsigned(false);
			$table->string('cellphone')->unique()->nullable();
			$table->string('password')->nullable();
			$table->string('nickname', 32)->nullable();
			$table->string('fullname', 32)->nullable();
			$table->string('avatar', 128)->nullable();
			$table->rememberToken();
			$table->nullableTimestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('administrators');
    }
}
